home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_76_bigblue / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  1006 b   |  36 lines

  1. stop();
  2. this.swapDepths(500 + _parent._parent.dep++);
  3. if(_parent.flywar == true)
  4. {
  5.    _parent.gotoAndPlay("shake");
  6. }
  7. onEnterFrame = function()
  8. {
  9.    if(_parent._parent.ability == "fly")
  10.    {
  11.       this.gotoAndPlay(16);
  12.    }
  13.    if(_parent.boss.hp <= 12 and _parent._parent.nowLevel == "level43")
  14.    {
  15.       delete this.onEnterFrame;
  16.       this.removeMovieClip();
  17.    }
  18.    if(this.hitTest(_parent._parent.man.hitfk))
  19.    {
  20.       _parent._parent.man.stopFly = false;
  21.       _parent._parent.s_point.start();
  22.       _parent._parent.flyIco._visible = true;
  23.       _parent._parent.ability = "fly";
  24.       _parent._parent.man.xiaoguo.gotoAndPlay("blue");
  25.       _parent._parent.flyIco._alpha = 100;
  26.       _parent._parent.pTime = 0;
  27.       _parent._parent.tMax = 10;
  28.       _parent._parent.flyNow = false;
  29.       _parent._parent.spdNow = false;
  30.       _parent._parent.movspd = 5;
  31.       _parent._parent.powerTime.gotoAndStop("fly");
  32.       delete this.onEnterFrame;
  33.       this.play();
  34.    }
  35. };
  36.